﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DungeonAndDragonApplication.Controller.Game.DiceManager
{
    /// <summary>
    /// This class will return random values of dice rolls
    /// </summary>
    class PlayerDice
    {
        public PlayerDice()
        { }

        public int RollDie(DiceEnum dice)
        {
            Random r = new Random();
            
            switch (dice)
            { 
                case DiceEnum.oneDiefour:
                    return r.Next(1, 4);
                case DiceEnum.oneDieSix:
                    return r.Next(1,6);
                case DiceEnum.oneDieTen:
                    return r.Next(1, 10);
                case DiceEnum.oneDieHundred:
                    return r.Next(1,100);
                case DiceEnum.threeDieSix:
                    return r.Next(3, 18);
                default:
                    throw new SystemException("Dice thrown not supported");
            }
        }
    }
}
